config = {
	META : {
		filter:[ 
		        {type:'label',name:'对象类型',code:'objtype',storesql:"select distinct objtype,objname cnname from metaobjmodel where objtype in ('INTER', 'PROC', 'TAB',  'DATAFLOW', 'TRANSFLOW', 'OPENAPI', 'LABEL', 'ZB', 'APP')",where:"a.objtype in('{selfval}')"}
		        ,{type:'tree',name:'目录位置',code:'rulecode',storesql:"select distinct rulecode code,rulename name,parentcode from metadb_struct where dbname='{val}'",where:"b.rulecode like '{selfval}%'"}
		        ,{type:'text',name:'名称',code:'keyval',storesql:"",where:"(a.objname like '%{selfval}%' or a.objcnname like '%{selfval}%')"}
			],
		toolbar:[
		         ],
		list:{
			title : '对象',
//			sql : "select * from metaobj where xmlid in (SELECT  xmlid FROM metadb_struct_obj WHERE dbname='{dbname}')",
			sql : "select a.XMLID,a.OBJNAME,a.OBJCNNAME,a.OBJTYPE,b.DBNAME,b.RULECODE TOPICCODE,CYCLETYPE,TEAM_CODE,CREATER,EFF_DATE,CURDUTYER,STATE,STATE_DATE,VERSEQ,REMARK from metaobj a,metadb_struct_obj b WHERE a.xmlid = b.xmlid and b.dbname='{dbname}'",
			tpl:'<div class="dacptiles panel panel-success " id="{{XMLID}}" title="{{OBJNAME}}" objtype="{{OBJTYPE}}"> <header class="panel-heading"> <strong class="part-one">类型：{{OBJCNTYPE}}</strong> <span class="part-two"></span> <ul class="nav nav-pills pull-right"></ul> </header> <div class="row"> <div class="col-md-12" style="padding-left:30px;text-align:left;"> <h5> <b>{{OBJNAME}}<b></b></b> </h5> <b><b><small><b>{{OBJCNNAME}}&nbsp;</b></small></b></b> </div> </div> <div class="row fieldinfo"></div> <div class="panel-footer bg-light lter text-center" style="margin-top:10px"> <div class="row pull-out"> <div class="col-xs-4"> <div class="padder-v"> <small class="m-b-xs h5 block">{{DBCNNAME}}</small><small class="text-muted">数据库</small> </div> </div> <div class="col-xs-4 dk"> <div class="padder-v"> <small class="m-b-xs h5 block">{{TOPICCODE}}</small><small class="text-muted">主题</small> </div> </div> <div class="col-xs-4"> <div class="padder-v"> <small class="m-b-xs h5 block">{{STATE_DATE}}</small><small class="text-muted">状态时间</small> </div> </div> </div> </div> </div>',
			columns : [{header : "数据库",dataIndex : 'DBNAME',headerAlign : "center",dataAlign : "center",width : "80%",sortable : true,
					render : function(rowData, colVal) {
						var html = '<div class="media">'
								+ '<div class="media-left">'
								+ '<a href="#">'
								+ '    <img class="media-object" alt="" src="/'
								+ contextPath
								+ '/dacp-res/catalog/common/images/database/table.png" style="width: 60px; height: 40px;">'
								+ '  </a>'
								+ '</div>'
								+ '<div class="media-body">'
								+ '  <h4 class="media-heading"><a href="#">'
								+ rowData.OBJNAME
								+ ","
								+ rowData.OBJCNNAME
								+ "&nbsp;&nbsp;&nbsp;&nbsp;<strong>数据类型：" 
								+ rowData.OBJTYPE
								+ '</strong></a></h4>'
								+ '  <p><code>数据库:'
								+ colVal
								+ '</code>,创建团队:'+rowData.TEAM_CODE+',主题：'+rowData.TOPICCODE+',<a type="button" class="btn btn-primary btn-xs pull-right" onclick="$(this).dblclick();">详细信息</a></p>'
								+ '  <p class="text-muted m-t-sm small">'+(rowData.REMARK||'无详细信息')+'</p>'
								+ '<div class="text-muted"> <i class="fa fa-user icon-muted"></i> by <a href="#" class="m-r-sm">' + (rowData.CURDUTYER||'--') + '</a> <i class="fa fa-clock-o icon-muted"></i> ' + rowData.STATE_DATE + ' <a href="#" class="m-l-sm"><i class="fa fa-comment-o icon-muted"></i> no comments</a> </div>'
								+ '</div>'
								+ '</div>';
						return html;
					}
				}
			]
		}
	}
}